#pragma once

#include<WinSock2.h>
#pragma comment(lib, "Ws2_32")
#define WIN32_LEAN_AND_MEAN

#include <string>


class Socket
{
public:
	virtual bool myconnect(std::string ip, int port) = 0;
};


class MySocket : public Socket
{
public:
	MySocket();
	bool myconnect(std::string ip, int port);

private:
	WSADATA wsa;
	SOCKET s;
	struct sockaddr_in server;
};

